package com.pv.user.feign;

import com.pv.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @Author: Zk
 * @Date: 2021/8/21 15:47
 */
@FeignClient("third-party")
public interface ThirdPartyFeignService {
    /**
 * 提供给别的服务来进行调用的
 *
 * @return
 * @throws Exception
 */
@GetMapping("/thirdparty/sms/sendcode")
R Phone(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
